package com.example.shopping.pojo;

import java.util.List;

/*
Create by 苍狼 于 2020/1/16
站在巅峰看世界，
落在深渊思人生。
*/
//内容类别
public class ContentCategory {
    private int id;
    private String name;
    private int status;
    private List<Content> contents;

    public ContentCategory(int id, String name, int status, List<Content> contents) {
        this.id = id;
        this.name = name;
        this.status = status;
        this.contents = contents;
    }

    @Override
    public String toString() {
        return "ContentCategory{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", status=" + status +
                ", contents=" + contents +
                '}';
    }

    public List<Content> getContents() {
        return contents;
    }

    public void setContent(List<Content> contents) {
        this.contents = contents;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public ContentCategory() {
    }

    public ContentCategory(int id, String name, int status) {
        this.id = id;
        this.name = name;
        this.status = status;
    }

    public ContentCategory(String name, int status) {
        this.name = name;
        this.status = status;
    }
}
